<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<%@ page import="com.lmpop.trade.tb_returngoodsdetail.Tb_returngoodsdetailInfo" %>
<%@ page import="java.util.*" %>
<%

	String  detail_id = "";
	if(request.getParameter("detail_id")!=null && !request.getParameter("detail_id").equals("")){
		detail_id = request.getParameter("detail_id");
	}
	Tb_returngoodsdetailInfo returngoodsinfo = new Tb_returngoodsdetailInfo();
	
	String goods_id="",goods_name="",deal_reason="",back_state="";
	String returnstate = "";
	List goodslist = returngoodsinfo.getListByPk(detail_id);
	if(goodslist!=null && goodslist.size()>0){
		Hashtable goodsmap = new Hashtable();
			goodsmap = (Hashtable)goodslist.get(0);
			
			if(goodsmap.get("goods_id")!=null) goods_id = goodsmap.get("goods_id").toString();
			if(goodsmap.get("goods_name")!=null) goods_name = goodsmap.get("goods_name").toString();
			if(goodsmap.get("deal_reason")!=null) deal_reason = goodsmap.get("deal_reason").toString();
			if(goodsmap.get("state")!=null) back_state = goodsmap.get("state").toString();
			
			if(back_state.equals(""))returnstate = "未申请";
			else if(back_state.equals("0"))returnstate = "未处理";
			else if(back_state.equals("1"))returnstate = "处理中";
			else if(back_state.equals("2"))returnstate = "不同意退货";
			else if(back_state.equals("3"))returnstate = "同意退货";
	}
	
%>

<form action="/doTradeReg.do" method="post" name="addForm">
<div class="f-right w750">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#eddfea">
      <tr>
        <td width="5%" height="40" align="center"><img src="/program/member/index/images/icon1.gif" /></td>
        <td width="75%"><h3>查看退货原因</h3></td>
        <td width="20%"><a href="" class="cZs"></a></td>
      </tr>
    </table>
    <div class="ts"> <img src="/program/member/index/images/ts.gif" /> 查看卖家处理情况. </div>
    <!--Content部分开始-->
    <DIV class="focus-area-setTab">
     
      <DIV class="focus-area-setTab-content">
        <DIV id=con_one_1 >
          <table width="100%" border="0" cellspacing="0" bgcolor="#fcf8fb" cellpadding="0" style="border-bottom:3px solid #eddfea; padding-left:15px;">
            <tr bgcolor="#fcf8fb">
              <td height="100" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-size:12px;">
                  <tr>
                    <td height="17" colspan="2" class="art_col">&nbsp;</td>
                  </tr>
                 
                  <tr>
                    <td height="38" class="art_col">退货商品:</td>
                    <td>
						<font color="#D0272E"><%=goods_name%></font><br/>
                    </td>
                  </tr>

				  <tr>
                    <td height="38" class="art_col">处理情况:</td>
                    <td>
						<font color="#D0272E"><%=returnstate%></font><br/>
                    </td>
                  </tr>
     
                  <tr>
                    <td height="38" class="art_col">处理原因</td>
                    <td WIDTH=650px>
						<%=deal_reason%>
                    </td>
                  </tr>
                  <tr>
                    <td height="38"></td>
                    <td></td>
                  </tr>
                </table></td>
            </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="50" align="center">
				<input class="button2" type="button" name="tradeRut" value="返    回" onclick="window.location.href='index.jsp?menu_id=<%=menu_id%>';"/>
              </td>
            </tr>
          </table>
        </DIV>
       
      </DIV>
    </DIV>
  </div>
</div>
</form>